//Create a Group instance as object
Group newGroupInstance = new SimpleGroup("someGroup");
// Create the new group in the store
identityManager.add(newGroupInstance);
// let's retrieve the group information and see if they are properly stored
Group storedGroupInstance = identityManager.getGroup(newGroupInstance.getName());
assertNotNull(storedGroupInstance);
assertEquals(newGroupInstance.getKey(), storedGroupInstance.getKey());
assertEquals(newGroupInstance.getName(), storedGroupInstance.getName());